#!/bin/bash

BUILD_DIR=build

if [ -e ${BUILD_DIR} ]; then
  rm -r ${BUILD_DIR}/*
else
  mkdir ${BUILD_DIR}
fi

cd ${BUILD_DIR}
cmake ..
make -j8

